package com.clear.honghefinance.biz.modules.system.role.domain.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 角色绑定菜单DTO
 * </p>
 */
@Getter
@Setter
public class RoleBindMenuDTO implements Serializable {

    /**
     * 角色id
     */
    @ApiModelProperty(value = "角色id")
    @NotNull(message = "角色id不能为空")
    @Min(value = 1, message = "角色id不能小于1")
    private Integer roleId;

    /**
     * 菜单id列表
     */
    @ApiModelProperty(value = "菜单id列表")
    @NotNull(message = "菜单id列表不能为空")
    private List<Integer> bindMenuIds;

    /**
     * 解绑菜单id列表
     */
    @ApiModelProperty(value = "解绑菜单id列表")
    @NotNull(message = "解绑菜单id列表不能为空")
    private List<Integer> unBindMenuIds;
}
